package com.migu.spms.dao.inf;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.migu.spms.dao.entity.ProjectCriteria;
import com.migu.spms.dao.entity.ProjectDO;
@Repository(value="IProjectDO")
public interface IProjectDO {
    int deleteByPrimaryKey(Integer pid);

    int insert(ProjectCriteria record);

    int insertSelective(ProjectCriteria record);

    ProjectDO selectByPrimaryKey(Integer pid);

    int updateByPrimaryKeySelective(ProjectCriteria record);

    int updateByPrimaryKey(ProjectCriteria record);
    
    List<ProjectDO> selectByCriteria(ProjectCriteria record);
    
    ProjectDO selectProjectByName(String name);
    //根据项目id查询项目名称
    String selectProjectNameById(@Param(value="projectId") String projectId);
}